package com.zzt.questionbankquestion.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/*
 *   Create by zzt
 *   2020/2/3
 *   知识点与课程关联类
 */

@Entity
@Table(name = "user_and_bank")
@Data
@AllArgsConstructor
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@ToString
public class UserAndBank {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;//id
    private Long userId;//用户id
    private Long bankId;//题库id
    private String bankName;//题库名字
}
